<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" >
<head>
    <title>Login page</title>
    <meta charset="utf-8" />
</head>
<body>

<div class="login">
    <form th:action="@{/login.do}"method="post">
        <div >
            <input id="username" name="username" placeholder="用户名"  type="text" autofocus="autofocus" autocomplete="off">
        </div>
        <div >
            <input id="password" name="password" placeholder="密码"   type="password" autocomplete="off">
        </div>
        <div >
            <input type="submit"/>
        </div>
        <div >
            <span th:if="${loginError}" style="color: red;font-size: large" >用户名或密码错误!</span>
            <span th:if="${logout}" style="color: red;font-size: large" >您已注销,请重新登录!</span>
        </div>
    </form>
</div>
</body>
</html>